<template>
  <a-form
    ref="formRef"
    :model="formData"
    :rules="formRule"
    v-bind="layoutConfig.formLayout"
  >
    `%formCode%`
    <a-row v-bind="layoutConfig.row">
      <a-col v-bind="layoutConfig.col">
        <a-space align="center" style="width: 100%">
          <a-button type="primary" @click="$refs.formRef.validate()">
            提交
          </a-button>
          <a-button @click="$refs.formRef.resetFields()"> 重置 </a-button>
        </a-space>
      </a-col>
    </a-row>
  </a-form>
</template>

<script>
export default {
  data() {
    return {
      isPreview: false,
      layoutConfig: `%layoutConfigCode%`,
      formData: `%formDataCode%`,
      formRule: `%formRuleCode%`,
    };
  },
};
</script>
